﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace IceDog.Uop.Models
{
    /// <summary>
    /// 订单和产品的中间表模型
    /// </summary>
    /// <remarks>主键在UopContext中用fluent API定义</remarks>
    public class OrderDetail
    {
        /// <summary>
        /// 订单Id
        /// </summary>
        public int OrderId { get; set; }
        /// <summary>
        /// 订单
        /// </summary>
        public Order Order { get; set; }
        /// <summary>
        /// 产品Id
        /// </summary>
        public int ProductId { get; set; }
        /// <summary>
        /// 产品
        /// </summary>
        public Product Product { get; set; }
    }
}
